package com.code.test.dance;

import java.util.Arrays;

/**
 * 88. 合并两个有序数组
 * <p>
 * https://leetcode.cn/problems/merge-sorted-array/description/
 */
public class ArrayMerger {

    public static void main(String[] args) {
        int[] nums1 = {1, 2, 3, 0, 0, 0};
        int[] nums2 = {2, 5, 6};

    }

    public static void merge(int[] nums1, int m, int[] nums2, int n) {
        for (int i = 0; i < nums2.length; i++) {
            nums1[m + i] = nums2[i];
        }
        Arrays.sort(nums1);
    }
}
